home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / skates.swf / scripts / DefineButton2_236 / BUTTONCONDACTION on(keyPress Space).as next >
Encoding:
Text File  |  2007-04-20  |  353 b   |  11 lines

  1. on(keyPress "<Space>"){
  2.    if(_root.player.hand == false and _root.player.jumpin == false and _root.hit == false and playOK == 1)
  3.    {
  4.       _root.soundOn != 1 ? 0 : _root.SFXahh.gotoAndPlay(2);
  5.       _root.player.gotoAndPlay(2);
  6.       _root.player.board.gotoAndStop(1);
  7.       _root.Jvalue = 1;
  8.       _root.jumpNum = _root.jumpNum + 1;
  9.    }
  10. }
  11.